<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://d3js.org/d3.v4.min.js"></script>

</head>
<body>
    
    <script type="text/javascript">
        
        var body = d3.select("body");
        var div = body.append("div").html("Hello 1").append("div").html("Hello 2");
    </script>
</body>
</html>